module.exports = {
  filter: [{
    name:'env',
    clazz: './api/env.js',
    mapping: [
      '/env'
    ]
  }, {
    name: 'myFilter',
    clazz: './api/filters/filter.js',
    mapping: [
      '/tenant',
      '/portal',
      '/uyun-base',
      '/udap-solution',
      '/cmdb',
      '/videomon',
      '/monitor/',
      '/databank',
      '/dashboard',
      '/chatops',
      '/report',
      '/dragon',
      '/notify',
      '/collector',
      
      '/styles/',
      '/omp',
      '/frontend',

      '/upload/',
      '/file',
      '/resource',
      '/extensions',

      '/followgiant',
      '/icons',
      '/assets',
      
      '/show',
      '/static',
      '/home',
      '/sockjs-node'
    ]
  }, {
    name:'testDispatcherServlet',
    clazz: './api/controllers/test.js',
    mapping: [
      '/test'
    ]
  }],
  controller: [{
    name: 'myDispatcherServlet',
    clazz: './api/controllers/controller.js',
    mapping: [
      '/api',
      '/showdata',
      '/verify',
      '/set-cookie',
      '/udap',
      '/udap-solution',
      '/udapmanager',
      '/dashboard',
      '/tenant',
      '/notify',
      '/frontend',
      '/upload/',
      '/file',
      '/resource',
      
      '/show'
    ]
  }],
  ws: [{
    name: 'ws',
    clazz: './api/controllers/websocket.js',
    mapping: [ //新版 [r15.20 Websocket 要手动监听 Upgrade，只监听第一个
      '/show/show/api/ws/dataset',
      '/show/api/ws/dataset',
      '/api/ws/dataset',
      // '/chatops/api/v2/chat/snapper/socket/'
    ]
  }],
  wslocal: '/localws'
}